﻿using FluentNHibernate.Mapping;
using Konekcija.Core.Reporting.Dto.Application.Security;

namespace Konekcija.Core.Reporting.Mappings.Security
{
    public class UserToAccountMap : ClassMap<UserToAccount>
    {
        public UserToAccountMap()
        {
            Schema("security");
            Table("UsersToAccounts");

            Id(x => x.Id).GeneratedBy.GuidComb().Not.Nullable();
            Map(x => x.AccountId).Nullable();
            Map(x => x.UserId).Nullable();
        }
    }
}
